package org.dromara.common.ratelimiter.config

import org.dromara.common.ratelimiter.aspectj.RateLimiterAspect
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.context.annotation.Bean
import org.springframework.data.redis.connection.RedisConfiguration

/**
 * @author guangxin
 * @updater LikeYouDo
 * @date 2025/2/1 21:34
 */
@AutoConfiguration(after = [RedisConfiguration::class])
class RateLimiterConfig {

    @Bean
    fun rateLimiterAspect(): RateLimiterAspect {
        return RateLimiterAspect()
    }

}
